﻿<UserControl x:Class="Topics.Radical.Presentation.Commanding.AutoCommandBindingWithNestedSourceView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:command="http://schemas.topics.it/wpf/radical/windows/markup"
	  mc:Ignorable="d" 
             xmlns:local="clr-namespace:Topics.Radical.Presentation.Commanding"
	  d:DesignHeight="401" d:DesignWidth="603">
    <UserControl.Resources>
        <local:NestedSource x:Key="nested" />
    </UserControl.Resources>
    <Grid>
        <Button Command="{command:AutoCommandBinding Path=Call, Source={StaticResource ResourceKey=nested}}" Content="Execute..." Margin="102,15,0,0" Width="75" Height="23" VerticalAlignment="Top" HorizontalAlignment="Left" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="191,15,0,0" Text="{Binding Path=CalledOn, Source={StaticResource ResourceKey=nested}}" VerticalAlignment="Top" />
    </Grid>
</UserControl>
